package com.best.design.strategy.good;

import java.math.BigDecimal;

/**
 * N元购
 *
 * @author Jiang Akang
 * employeeId: BG435424
 * @date 2021/11/21
 **/
public class NYGCouponDiscount implements ICouponDiscount<Double> {

    /**
     * n元购购买
     * 1. 无论原价多少钱都固定金额购买
     *
     * @param couponInfo 券折扣信息: 直减、满减、折扣、N元购
     * @param skuPrice sku金额
     * @return discountAmount
     */
    @Override
    public BigDecimal discountAmount(Double couponInfo, BigDecimal skuPrice) {
        return new BigDecimal(couponInfo);
    }
}
